import request from '@/utils/request'

// 查询销售出库信息列表
export function listSalesDelivery(query) {
  return request({
    url: '/business/salesDelivery/list',
    method: 'get',
    params: query
  })
}

// 查询销售出库信息详细
export function getSalesDelivery(deliveryId) {
  return request({
    url: '/business/salesDelivery/' + deliveryId,
    method: 'get'
  })
}

// 新增销售出库信息
export function addSalesDelivery(data) {
  return request({
    url: '/business/salesDelivery',
    method: 'post',
    data: data
  })
}

// 修改销售出库信息
export function updateSalesDelivery(data) {
  return request({
    url: '/business/salesDelivery',
    method: 'put',
    data: data
  })
}

// 删除销售出库信息
export function delSalesDelivery(deliveryId) {
  return request({
    url: '/business/salesDelivery/' + deliveryId,
    method: 'delete'
  })
}

// 导出销售出库信息
export function exportSalesDelivery(query) {
  return request({
    url: '/business/salesDelivery/export',
    method: 'get',
    params: query
  })
}